var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ 
    name:String,
    password:String,
    email:String,
    age:String,
    data:{ type: Date, default: Date.now }
});
schema.plugin(mongoosePaginate);

var users = mongoose.model('user',  schema);
module.exports=users;